package com.qf.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class MyAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        //在目标方法执行之前，需要的做的额外的逻辑，可以写在这里
        System.out.println("MyAdvice before 方法被调用到了......");
    }
}
